package com.ghck.server.controller.events;

import org.springframework.context.ApplicationEvent;

import com.ghck.server.model.CreditsCategory;

public class CreditsEvent extends ApplicationEvent{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private CreditsCategory category;

	private Integer userId;
	
	public CreditsEvent(Object source,Integer userId,CreditsCategory category) {
		super(source);
		this.userId = userId;
		this.category = category;
	}

	public CreditsCategory getCategory() {
		return category;
	}

	public void setCategory(CreditsCategory category) {
		this.category = category;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

}
